package org.example.wu_and_dian.service;

import com.baomidou.mybatisplus.extension.service.IService;
import org.example.wu_and_dian.dto.request.DocumentRequest;
import org.example.wu_and_dian.dto.request.UpdateDocument;
import org.example.wu_and_dian.dto.response.AjaxResult;
import org.example.wu_and_dian.dto.response.DocumentResponse;
import org.example.wu_and_dian.entity.Document;

import java.util.Date;
import java.util.List;

/**
* @author SS2613
* @description 针对表【document】的数据库操作Service
* @createDate 2025-03-20 11:34:39
*/
public interface DocumentService extends IService<Document> {
    AjaxResult updateDocumentContent(String documentId, String content, Date updatedAt);

    List<DocumentResponse> getDocumentsByProjectId(String projectId);

    AjaxResult createDocument(DocumentRequest documentRequest);

    int deleteDocument(String documentId);

    AjaxResult updateDocument(UpdateDocument updateDocument);

    AjaxResult uploadDocument(DocumentRequest documentRequest);

    Document getDocument(String documentId);

    int updateContentAuthorById(Document document);
}
